﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class admin_ClassManage : System.Web.UI.Page
{
    Class c = new Class();
    protected void Page_Load(object sender, EventArgs e)
    {
        Function.CheckSession();
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        c.Parentid = int.Parse(Request.Form["parentid"].ToString());
        c.Classname = this.TextBox1.Text;
        c.AddClass(c);
        Response.Write("<script>alert('添加成功');window.location('classmanage.aspx');</script>");
    }
}
